home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
wgdb-42.lha
/
wgdb-4.2
/
libiberty
/
strerror.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-11
|
311b
|
14 lines
/* Many systems don't have strerror, but some do. This simulates
it for systems that have sys_errlist instead. */
extern int sys_nerr;
extern char *sys_errlist[];
char *
strerror (code)
int code;
{
return (((code < 0) || (code >= sys_nerr)) ? "(unknown error)" :
sys_errlist [code]);
}